package com.zimmor.naiyou.client.service.impl;

import com.zimmor.naiyou.client.config.NaiyouConfig;
import com.zimmor.naiyou.client.service.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import sun.net.www.http.HttpClient;

/**
 * @Author:zimmor
 * @Date: 2023/3/14 11:46
 * @Description 资源业务接口实现类
 * @version: 1.0.0
 */
@Service
public class ResourceServiceImpl implements ResourceService {

    @Autowired
    private RestTemplate restTemplate;

    @Autowired
    private NaiyouConfig naiyouConfig;

    @Override
    public boolean register() {
//        restTemplate.postForObject(naiyouConfig.getNaiyouServerUrl(), );
        return false;
    }

    @Override
    public boolean renew() {
        return false;
    }

    @Override
    public boolean shutdown() {
        return false;
    }
}
